//
//  GlobalMethod+Auth.h
//  MexicoLoan
//
//  Created by wxp on 2025/2/26.
//

#import "GlobalMethod.h"

NS_ASSUME_NONNULL_BEGIN

@interface GlobalMethod (Auth)

// 是否已开启相机权限
+ (void)isOpenCamearPermissionsWithCompletion:(void (^)(BOOL granted))completion;

#pragma mark - 获取设备信息
// 设备信息
+ (void)getDeviceInfoBlock:(void (^)(NSDictionary * dic))block;




#pragma mark - 获取 设备-电量信息
+ (NSDictionary *)getDeviceBatteryInfo;

#pragma mark - 获取 设备-基本信息
+ (NSDictionary *)getDeviceGeneralDataInfo;

#pragma mark - 获取 设备-硬件信息
+ (NSDictionary *)gainDeviceHardwareInfo;

#pragma mark - 通讯录
// 获取通讯录权限
+ (void)getAddressBookAuthorityBlock:(void (^)(void))block isShowTips:(BOOL)isShowTips;
// 获取通讯录内容
+ (void)getAddressBookArrayBlock:(void (^)(NSMutableArray * array))block;

#pragma mark - 日历
// 获取日历权限
+ (void)getCalendarInfoBlock:(void (^)(NSMutableArray * array))block;


@end

NS_ASSUME_NONNULL_END
